import request from '@/utils/request'

// 查询项目人员列表
export function listPersonnel(query) {
  return request({
    url: '/cbs/project/personnel/list',
    method: 'get',
    params: query
  })
}

// 查询项目人员详细
export function getPersonnel(id) {
  return request({
    url: '/cbs/project/personnel/' + id,
    method: 'get'
  })
}

// 新增项目人员
export function addPersonnel(data) {
  return request({
    url: '/cbs/project/personnel',
    method: 'post',
    data: data
  })
}

// 修改项目人员
export function updatePersonnel(data) {
  return request({
    url: '/cbs/project/personnel',
    method: 'put',
    data: data
  })
}

// 删除项目人员
export function delPersonnel(id) {
  return request({
    url: '/cbs/project/personnel/' + id,
    method: 'delete'
  })
}
